import request from '@/utils/request'

// 查询账套列表
export function listFinPackage(query) {
  return request({
    url: '/project/FinPackage/list',
    method: 'get',
    params: query
  })
}

export function getCurrentMonthFinPackage() {
  return request({
    url: '/project/FinPackage/getCurrentMonth',
    method: 'get',
  })
}



// 查询账套详细
export function getFinPackage(id) {
  return request({
    url: '/project/FinPackage/' + id,
    method: 'get'
  })
}

// 新增账套
export function addFinPackage(data) {
  return request({
    url: '/project/FinPackage',
    method: 'post',
    data: data
  })
}

// 修改账套
export function updateFinPackage(data) {
  return request({
    url: '/project/FinPackage',
    method: 'put',
    data: data
  })
}

// 删除账套
export function delFinPackage(id) {
  return request({
    url: '/project/FinPackage/' + id,
    method: 'delete'
  })
}
